package chapter13;

public class SortParallelogram {
    public static void main(String[] args) {
        Parallelogram[] parallelograms = {
          new Parallelogram(4,8,3),
          new Parallelogram(7,8,3),
          new Parallelogram(7,9,2)
        };
        java.util.Arrays.sort(parallelograms);
        for (Parallelogram parallelogram: parallelograms) {
            System.out.print(parallelogram + "\n");
        }
    }
}
